package light.head.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 文档公开权限
 *
 */
@Entity
@Table
public class Authority implements Serializable{
	//序列化实现借口
	private static final long serialVersionUID = 2438478769590587241L;
	
	private Integer code;		
	private Integer pc;				// 指定权限编号
	private Byte pType;				// 公开权限级别（1、全部公开  2、指定公开）	
	private Integer dc;				// 文档编号
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	
	@Column
	public Integer getPc() {
		return pc;
	}
	
	@Column
	public Byte getpType() {
		return pType;
	}
	
	@Column
	public Integer getDc() {
		return dc;
	}
	
	
	
	
	
	
	
	
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setPc(Integer pc) {
		this.pc = pc;
	}
	public void setpType(Byte pType) {
		this.pType = pType;
	}
	public void setDc(Integer dc) {
		this.dc = dc;
	}

}
